#include<iostream>
#include<algorithm>

using namespace std;


int main()
{
    int n;
	scanf("%d",&n);
	
	int sum=0;
	while(n--){
		int x;
		scanf("%d",&x);
		sum^=x;
	}
	if(sum)  printf("Yes");
	else  printf("No");
	
	return 0;
} 
